while True:
    try:
        ID_number = (input())
        if len(ID_number) != 18:
            print("请输入正确的18位身份证号")
        year=ID_number[6:10]
        month=ID_number[10:12]
        day=ID_number[12:14]
        gender=int(ID_number[16:17])
        if gender % 2 == 1:
            gender='boy'
        else:
            gender='girl'
        print(f'{year}-{month}-{day}:{gender}')
        break
    except:
        print('操作不合法，请重新输入')
